<?php
namespace Json\Controller;
use Think\Controller;
class ClubController extends Controller {
  public function clublistJson(){
       
       $use= $this->users=M('club')->select();
   echo json_encode($use);
      } 
  
    public function clubOneJson($id){
       
       $club = M('club') -> where("clubid='$id'") -> find();
       echo json_encode($club);
      } 

}